﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="Show.aspx.cs" Inherits="Maticsoft.Web.OrderInfo.Show" Title="显示页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>                   
                    <td class="tdbg">
                               
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
	<tr>
	<td height="25" width="30%" align="right">
		OrderId
	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblOrderId" runat="server"></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		UserId
	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblUserId" runat="server"></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		ReceiveMan
	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblReceiveMan" runat="server"></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		PayType
	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblPayType" runat="server"></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		OrderTotal
	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblOrderTotal" runat="server"></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		OrderStatus
	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblOrderStatus" runat="server"></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		OrderTime
	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblOrderTime" runat="server"></asp:Label>
	</td></tr>
</table>

                    </td>
                </tr>
            </table>

            <div>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataSourceID="SqlDataSource1" Height="130px" Width="646px">
                    <Columns>
                        <asp:BoundField DataField="OrderId" HeaderText="OrderId" 
                            SortExpression="OrderId" />
                        <asp:BoundField DataField="ProductName" HeaderText="ProductName" 
                            SortExpression="ProductName" />
                        <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" />
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:LightErpConnectionString %>" 
                    SelectCommand="SELECT  Sales.OrderId,ProductInfo.ProductName,  ProductInfo.Price  FROM OrderInfo INNER JOIN Sales ON OrderInfo.OrderId = Sales.OrderId INNER JOIN ProductInfo ON Sales.ProductId = ProductInfo.ProductId">
                </asp:SqlDataSource>
            <input type="button" style=" cursor:pointer;width: 60px; height: 30px; font-size: 12px; color: #660033"
                        onclick="javascript:window.print();" value="打 印" id="Button1" />
            </div>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>




